package com.micro.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Tyd
 * @date 2021/03/08 17:24
 */
@FeignClient(value = "micro-service-user",fallback = UserFallback.class,path = "/user")
public interface UserServiceFeignClient {

    @GetMapping("/info/{token}")
    public String info(@PathVariable String token);
}
